package edu.westga.cs.recommender.model.datatypes;

import java.util.LinkedList;

public class Profile {
	//Fields
	private String userName;
	private String profileName;
	private LinkedList<String> tags;
	
	//Constructor
	/**
	 * 
	 */
	public Profile(String user, String profile, LinkedList<String> inputTags) {
		this.userName = user;
		this.profileName = profile;
		this.tags = inputTags;
	}
	
	//Methods
	/**
	 * Returns the user login of the user this profile belongs to.
	 */
	public String getOwner() {
		String secure = this.userName;
		return secure;
	}
	
	/**
	 * Returns the name of this profile.
	 */
	public String getProfileName() {
		String secure = this.profileName;
		return secure;
	}
	
	/**
	 * Returns the tags associated with this profile.
	 */
	public LinkedList<String> getTags() {
		LinkedList<String> secure = this.tags;
		return secure;
	}
	
	/**
	 * Adds a tag to this profile.
	 * @param A string containing the tag to add.
	 */
	public void addTag(String newTag) {
		this.tags.add(newTag);
	}
	
	/**
	 * Removes a tag from this profile.
	 * @param A string containing the tag to remove.
	 */
	public void removeTag(String delTag) {
		int killnum = this.tags.indexOf(delTag);
		this.tags.remove(killnum);
	}
}
